package com.story.modular.app.dao;

import com.story.common.persistence.model.Banner;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
  * 栏目表 Mapper 接口
 * </p>
 *
 * @author yangbo
 * @since 2017-12-19
 */
public interface BannerDao {

    public List<Map<String,Object>> bannerList(@Param("condition") String condition,@Param("type") Integer type);

    public Banner selectBannerById(@Param("bannerId") Integer bannerId);

    public int updateBannerById(@Param("banner") Banner banner);

    public int countBannerByName(@Param("name") String name);

}